package com.mall.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.user.model.Cities;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 城市表 服务类
 * </p>
 *
 * @author Darren
 * @since 2022-08-29
 */
public interface ICitiesService extends IService<Cities> {
    /**
     * 新增
     *
     * @param brand
     * @return
     */
    boolean addCities(Cities cities);

    /**
     * 根据id删除
     *
     * @param id
     * @return
     */
    boolean deleteById(String cityid);

    /**
     * 更新
     *
     * @param brand
     * @return
     */
    boolean updateCities(Cities cities);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    Cities getById(String cityid);

    /**
     * 根据条件查询全部数据
     *
     * @param brand
     * @return
     */
    List<Cities> selectList(Cities cities);

    /**
     * 分页查询
     *
     * @param brand
     * @return
     */
    Page<Cities> selectPage(Page<Cities> page, Cities cities);
}
